<?php
/**
 * Created by PhpStorm.
 * User: junyv
 * Date: 2017/4/19
 * Time: 8:55
 */

namespace app\home\controller;


class Agency extends Base
{
    public function index(){
        $where['model']  = 2;
        $where['status'] = 1;
        $where['city']   = $this->cityInfo['id'];
        $lists = model('user')->where($where)->field('id,nickname,headimgurl,chuzu,chushou,buy_phone,company')->order('id desc')->paginate(12);
        $this->setSeo(['title'=>'经纪人']);
        $this->assign('lists',$lists);
        $this->assign('pages',$lists->render());
        return $this->fetch();
    }
}